package com.atguigu.tingshu.album.api;

import com.atguigu.tingshu.album.service.TestService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author atguigu-mqx
 * @ClassName TestController
 * @description: TODO
 * @date 2024年04月20日
 * @version: 1.0
 */
@RestController
@RequestMapping("api/album/test")
public class TestController {

    @Autowired
    private TestService testService;

    /**
     * 测试本地锁
     */
    @Operation(summary = "测试本地锁")
    @GetMapping("/testLock")
    public void testLock(){
        testService.testLock();
    }
}
